import configparser

config = configparser.ConfigParser()
config.read('./config/properties.conf')
lists_header = config.sections()  # 配置组名, ['luzhuo.me', 'mysql'] # 不含'DEFAULT'
print(lists_header)
print(config['mysql']['user'])
print(config['redis']['ip'])
